#ifndef JOB_H
#define JOB_H
#include "childprogram.h"
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <glob.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <unistd.h>

class job {
  
  public: 
    int jobId;              /* job number */
    int numProgs;           /* total number of programs in job */
    int runningProgs;       /* number of programs running */
    char * text;            /* name of job */
    char * cmdBuf;          /* buffer various argv's point into */
    pid_t pgrp;             /* process group ID for the job */
    childProgram * progs; /* array of programs in job */
    job * next;      /* to track background commands */
    int stoppedProgs;       /* number of programs alive, but stopped */
};
#endif